Learn how to implement Algolia’s Query Suggestions.
query_suggestions_test
). Select the different languages you’re using and the source index (for example, your main product index). You can click “Accept and Continue” to create the Query Suggestions index.
After a few seconds, your new index will be available. You can navigate to the “indices” section in the Algolia dashboard to find it between your other indices.
Algolia_CustomAlgolia
) or install the freely available starter extension that you can customize further for your application.
3.8.0
of the Algolia Search Integration for Magento extension. Depending on your installed version, a different approach to customization will be required. In general, Algolia recommends running on the very latest version of our extension.afterAutocompletePlugins
frontend hook provided by the extension.
view/frontend/web/js/hooks.js
file and register it via requirejs-config.js
:
query_suggestions_test
index created previously).3.7.x
and belowbeforeAutocompleteSources
frontend hook provided by the extension.
In your custom module, create the view/frontend/layout/algolia_search_handle.xml
file and add the following to the <head>
section:
view/frontend/web/js/hooks.js
file and implement the logic for your hook there, or paste the contents of this gist in the file.
query_suggestions_test
index created previously).